home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 2.iso
/
dist
/
fw_hylafax.idb
/
usr
/
freeware
/
catman
/
u_man
/
cat1
/
faxrcvd.Z
/
faxrcvd
Wrap
Text File
|
2002-07-08
|
4KB
|
97 lines
FAXRCVD(${MANNUM1_8}) FAXRCVD(${MANNUM1_8})
NNAAMMEE
faxrcvd - _H_y_l_a_F_A_X notification script for received facsim
ile
SSYYNNOOPPSSIISS
$${{SSPPOOOOLL}}//bbiinn//ffaaxxrrccvvdd _q_f_i_l_e _d_e_v_i_d _c_o_m_m_i_d _e_r_r_o_r_-_m_s_g _c_i_d_n_u_m_
_b_e_r _c_i_d_n_a_m_e
DDEESSCCRRIIPPTTIIOONN
bbiinn//ffaaxxrrccvvdd is the command script invoked by the facsimile
server whenever a facsimile is received. The default
script sends electronic mail to the _F_a_x_M_a_s_t_e_r user
describing the content of the facsimile and other useful
information such as the time spent receiving the document.
The arguments are:
qqffiillee the pathname of the received TIFF file relative
to the root of the spooling hierarchy.
ddeevviidd the modem device on which the facsimile was
received.
ccoommmmiidd the communication identifier for the inbound
call.
eerrrroorr--mmssgg an error message that is non-null if an error
was encountered during the receive operation.
cciiddnnuummbbeerr the value of CCIIDDNNuummbbeerr when using QQuuaalliiffyyCCIIDD
cciiddnnaammee the value of CCIIDDNNaammee when using QQuuaalliiffyyCCIIDD
NNOOTTEESS
This script can route facsimile directly to the intended
receipient. To do this create a shell script eettcc//FFaaxxDDiiss
ppaattcchh in the spooling area that sets _S_E_N_D_T_O to the
receiver's electronic mail address. For example,
case "$SENDER" in
*1*510*526*1212*) SENDTO=sam;; # Sam's test rig in Berkeley
*1*415*390*1212*) SENDTO=raster@asd;; # 7L Xerox room, used for scanning
*5107811212) SENDTO=peebles@mti;; # stuff from home
esac
case "$DEVICE" in
ttyS1) SENDTO=john;; # all faxes received on ttyS1
ttyLT0) SENDTO=mary@home;; # all faxes received on ttyLT0
esac
case "$CIDNUMBER" in
435*) SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
5059627777) SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
esac
Note that you must match any embedded white space. The
facsimile will be sent as a MIME-encoded PostScript docu
ment as default.
_C_I_D_N_A_M_E
is equivalent to CCIIDDNNaammee above.
_C_I_D_N_U_M_B_E_R
is equivalent to CCIIDDNNuummbbeerr above.
_D_E_V_I_C_E is equivalent to ddeevviiccee above.
_F_I_L_E_T_Y_P_E
controls the filetype of the image attachment.
Current filetype options are ``ps'', ``tif'', and
``pdf''.
_M_S_G is equivalent to eerrrroorr--mmssgg above.
_S_E_N_D_E_R is the received TSI of the fax sender.
_S_E_N_D_T_O controls the recipient of the received fax notifi
cation. It is given as an e-mail address.
Other shell variables are available. Consult the faxrcvd
script directly.
FFIILLEESS
${SPOOL} spooling area
${SBIN}/faxinfo for printing information about the facsimile
${TIFFBIN}/fax2ps for converting TIFF to PostScript
${SENDMAIL} for delivering mail
SSEEEE AALLSSOO
_f_a_x_d(${MANNUM1_8}), _h_y_l_a_f_a_x_-_s_e_r_v_e_r(${MANNUM4_5}),
_r_e_c_v_q(${MANNUM4_5})
May 28, 2001 FAXRCVD(${MANNUM1_8})